import React from "react";
import BtnIcon from './btnIcon.png';
import './index.less';
const MyButton = props => {
    const { children,  onClick } = props;
    return (
        <div className="my-button" onClick={onClick}>
            <span className="icon">
                <img src={BtnIcon} alt="" />
            </span>
            <span className="text">{children}</span>
        </div>
    );
};

export default MyButton;